package com.disapand.dingdang.dto

import org.hibernate.validator.constraints.Length
import javax.validation.constraints.NotEmpty

/**
 * @author disapand
 * @date 2022/2/23 - 17:37 星期三
 */
data class LoginDTO(

    @field:NotEmpty(message = "account 不能为空")
    val account: String,

    @get:Length(min = 10,  message = "密码长度不能小于{min}")
    val password: String
)
